package com.yanqu.road.entity.activity.shushan;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description
 * @Author cwq
 * @Data 2022/3/8 16:31
 */
@FieldTypeAnnotation(tableName = "t_u_activity_shushan_build_data")
public class ShuShanBuildData extends DataObject {
    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", select = true, update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "建筑类型", select = true, update = true)
    private int type;
    @FieldTypeAnnotation(desc = "等级")
    private int level;
    @FieldTypeAnnotation(desc = "开始空闲的时间")
    private int freeTime;
    @FieldTypeAnnotation(desc = "所在修炼的弟子id")
    private int curDiscipleId;
    @FieldTypeAnnotation(desc = "第一次 进入修炼开始时间")
    private int exerciseStartTime;
    @FieldTypeAnnotation(desc = "修炼成功的时间节点")
    List<ShuShanExerciseSuccessNode> successNodeList = new ArrayList<>();

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getType() {
        return type;
    }
    public void setType(int type) {
        if (this.type != type) {
            this.type = type;
            setOp(DataStatus.Update);
        }
    }

    public int getLevel() {
        return level;
    }
    public void setLevel(int level) {
        if (this.level != level) {
            this.level = level;
            setOp(DataStatus.Update);
        }
    }

    public int getFreeTime() {
        return freeTime;
    }
    public void setFreeTime(int freeTime) {
        if (this.freeTime != freeTime) {
            this.freeTime = freeTime;
            setOp(DataStatus.Update);
        }
    }

    public int getCurDiscipleId() {
        return curDiscipleId;
    }
    public void setCurDiscipleId(int curDiscipleId) {
        if (this.curDiscipleId != curDiscipleId) {
            this.curDiscipleId = curDiscipleId;
            setOp(DataStatus.Update);
        }
    }

    public int getExerciseStartTime() {
        return exerciseStartTime;
    }
    public void setExerciseStartTime(int exerciseStartTime) {
        if (this.exerciseStartTime != exerciseStartTime) {
            this.exerciseStartTime = exerciseStartTime;
            setOp(DataStatus.Update);
        }
    }

    public java.util.List<com.yanqu.road.entity.activity.shushan.ShuShanExerciseSuccessNode> getSuccessNodeList() {
        return successNodeList;
    }
    public void setSuccessNodeList(java.util.List<com.yanqu.road.entity.activity.shushan.ShuShanExerciseSuccessNode> successNodeList) {
        if (null == successNodeList){
            return;
        }
        if (this.successNodeList == null || !this.successNodeList.equals(successNodeList)) {
            this.successNodeList = successNodeList;
            setOp(DataStatus.Update);
        }
    }

}
